package com.base;

/**
 * @author: csh
 * @Date: 2022/5/21 23:59
 * @Description:Integer测试
 */
public class IntegerTest {

    public static void main(String[] args) {
        Integer i0 = 127;
        Integer i1 = 127;
        Integer i2 = 128;
        Integer i3 = 128;

        System.out.println(i0==i1);
        System.out.println(i3==i2);
        System.out.println(i3.hashCode());
        Integer integer = Integer.getInteger("3");
        System.out.println(integer);
        Integer a = Integer.getInteger("a", 4);
        System.out.println(a);
        System.out.println(Integer.decode("5"));
//        System.out.println(Integer.decode(""));
        System.out.println(Integer.compare(3,2));
        Integer is = new Integer(2);
        System.out.println(is.compareTo(3));
        int i = Integer.divideUnsigned(2, 1);
        System.out.println(i);
        System.out.println(Integer.remainderUnsigned(2,2));
        System.out.println(Integer.highestOneBit(10));
        System.out.println(Integer.lowestOneBit(10));
        System.out.println(Integer.numberOfLeadingZeros(10));
        System.out.println(Integer.numberOfLeadingZeros(21));
        System.out.println(Integer.numberOfTrailingZeros(10));
        System.out.println(Integer.bitCount(10));
        System.out.println(Integer.rotateLeft(10,16));
        System.out.println(Integer.reverse(1));
        System.out.println(Integer.signum(-1));
        System.out.println(Integer.reverseBytes(1));


        Boolean.logicalXor(true,true);
        Boolean.logicalXor(false,true);
        Boolean.logicalXor(false,false);


    }
}
